package com.rupertjones.globalcron.web.service;

import com.rupertjones.globalcron.domain.Role;
import com.rupertjones.globalcron.domain.User;

import java.util.Collection;

/**
 * <p>&copy Rupert Jones 2011,2012</p>
 *
 * @author rup
 */
public interface UserService {
    User findUser(String username);
    void saveWithPassword(User user, String password);
    Collection<User> findAllUsers();
    Collection<Role> findAllRoles();
    Role findRole(String roleName);
    User findUser(int userId);
    void save(User actualUser);
}
